package com.akk.module.user.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@ApiModel(value = "忘记交易密码")
public class ForgetTransPwdRequest {

    @ApiModelProperty(value = "验证码",required = true)
    @NotNull(message = "验证吗不能为空")
    private String code;
    @ApiModelProperty(value = "新交易密码",required = true)
    @NotBlank(message = "登录密码不能为空")
    @Length(message = "交易密码长度不能低于6位",min = 6)
    private String newTransPwd;
    @ApiModelProperty(value = "手机号",required = true)
    @NotBlank(message = "手机号不能为空")
    private String phone;
    @ApiModelProperty(value = "证件号",required = true)
    @NotBlank(message = "证件号不能为空")
    private String idCard;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getNewTransPwd() {
        return newTransPwd;
    }

    public void setNewTransPwd(String newTransPwd) {
        this.newTransPwd = newTransPwd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
}
